package io.github.jyrmc.deploy.task

import io.github.jyrmc.deploy.utils.DataUtils

fun main() {
    val data = """
        NAME                              STATUS   AGE
        database                          Active   153d
        default                           Active   154d
        devops                            Active   106d
        dremio                            Active   153d
        kube-node-lease                   Active   154d
        kube-public                       Active   154d
        kube-system                       Active   154d
        kubekey-system                    Active   154d
        kubesphere-controls-system        Active   154d
        kubesphere-monitoring-federated   Active   154d
        kubesphere-monitoring-system      Active   154d
        kubesphere-system                 Active   154d
        test                              Active   107d
        uniplore                          Active   40d
        work                              Active   127d
    """.trimIndent()

    val temp = DataUtils.getNamespaces(data)
    temp.forEach {
        println(it.name)
    }
}